<?php
	header('Content-type:text/json;charset=utf-8');
	$userid = ($_COOKIE["userid"]);
	$username= ($_COOKIE["username"]);
	$content=($_POST["content"]);
	$mysqli = new mysqli("127.0.0.1", "root", "20155222", "lzj");
	
	if ($mysqli->connect_errno) {
	    printf("Connect failed: %s\n", $mysqli->connect_error);
	    exit();
	}
	$sql="select postid,title from posts;";
?>
